package com.czh.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Photo)表实体类
 *
 * @author makejava
 * @since 2024-05-07 20:05:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("czh_photo")
public class Photo  {
    
    private Integer id;
    //内容
    private String context;
    //图片cdn
    private String url;
    //浏览量
    private Long viewCount;
    //是否允许评论(0是)
    private Long isComment;
    //状态(0已发布，1草稿)
    private Long status;
    //是否置顶(0是)
    private Long isTop;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    //删除标志（0代表未删除，1代表已删除）
    @TableLogic(value = "0",delval = "1")
    private Integer delFlag;


}

